/* --- Basisstijlen (Herhaal van vorige keer voor context, maar ze komen uit style.css) --- */
:root {
    --brown: #45322e;
    --gold: #f1cc80;
    --light-bg: #fffaf2;
    --light-border: #e7d6c6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--brown);
    background-color: var(--light-bg);
    line-height: 1.6;
}

/* --- Project Header --- */
.project-header {
    padding: 1.5rem 0;
}

.project-header a.back-link {
    color: var(--gold);
    font-weight: 500;
    text-decoration: none;
}

.project-header a.back-link:hover {
    text-decoration: underline;
}

/* =========================================
  DE "CARD" LAYOUT MET CENTRERING
  =========================================
*/
.project-detail-container {
    max-width: 900px;

    /* --- HIER IS DE FIX VOOR CENTRERING --- */
    margin-left: auto;
    margin-right: auto;
    /* --- EINDE FIX --- */

    margin-top: 4rem;
    margin-bottom: 4rem;
    background-color: #fff;
    padding: 3rem 4rem;
    border-radius: 0.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
}

/* 1. Centreer de titel en intro */
.project-detail-container h1 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.project-detail-container p.intro {
    font-size: 1.15rem;
    font-style: italic;
    color: #5c4743;
    margin-bottom: 2.5rem;
    text-align: center;
    font-family: 'Playfair Display', serif;
}

/* =========================================
  FLEXBOX LAYOUT VOOR TEKST + FOTO
  =========================================
*/
.project-content-layout {
    display: flex;
    flex-direction: row;
    gap: 3rem;
    align-items: flex-start;
    margin-top: 2rem;
}

.project-text-column {
    flex: 2;
    text-align: left;
}

.project-text-column p {
    margin-bottom: 1rem;
}

.project-image-column {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.project-image-column img {
    width: 100%;
    max-width: 300px;
    height: auto;
    object-fit: contain;
    border-radius: 0.5rem;
    border: 1px solid var(--light-border);
    background-color: #fff;
}

/* Zorg ervoor dat er geen float-problemen meer zijn */
footer {
    clear: both;
}


/* --- MOBIELE WEERGAVE --- */
@media (max-width: 768px) {

    /* Pas de 'kaart' aan voor mobiel */
    .project-detail-container {
        padding: 2rem 1.5rem;
        margin-top: 2rem;
        margin-bottom: 2rem;
        box-shadow: none;
    }

    .project-detail-container h1 {
        font-size: 2.2rem;
    }

    /* Op mobiel: stapel de tekst en afbeelding onder elkaar */
    .project-content-layout {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .project-image-column {
        width: 80%;
        justify-content: center;
    }

    .project-image-column img {
        max-width: 250px;
    }
}

/* =========================================
   TOOL BADGES
   ========================================= */

.tool-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.tool-badge {
    display: inline-block;
    padding: 0.3rem 0.85rem;
    border-radius: 2rem;
    border: 1px solid var(--brown);
    color: var(--brown);
    font-size: 0.8rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    background-color: transparent;
}


/* =========================================
   PROJECT META BLOK
   ========================================= */

.project-meta {
    display: flex;
    gap: 0;
    justify-content: center;
    border: 1px solid var(--light-border);
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 2.5rem;
}

.meta-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 1.5rem;
    border-right: 1px solid var(--light-border);
    text-align: center;
}

.meta-item:last-child {
    border-right: none;
}

.meta-label {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9c8480;
    margin-bottom: 0.3rem;
}

.meta-value {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--brown);
}


/* =========================================
   PROJECT SECTIES (Opdracht, Proces, Eindwerk)
   ========================================= */

.project-section {
    margin-bottom: 2.5rem;
}

.project-section h2 {
    font-size: 1.4rem;
    font-family: 'Playfair Display', serif;
    color: var(--brown);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gold);
    display: inline-block;
}

.project-section p {
    margin-bottom: 1.5rem;
}


/* =========================================
   WAT HEB IK GELEERD
   ========================================= */

.skills-section {
    background-color: #fffaf2;
    border: 1px solid var(--light-border);
    border-radius: 0.5rem;
    padding: 1.75rem 2rem;
    margin-bottom: 2rem;
}

.skills-section h2 {
    font-size: 1.4rem;
    font-family: 'Playfair Display', serif;
    color: var(--brown);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gold);
    display: inline-block;
}

.skills-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.skills-list li {
    padding-left: 1.25rem;
    position: relative;
    font-size: 0.95rem;
    color: var(--brown);
    margin-bottom: 0;
}

.skills-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 700;
}


/* =========================================
   MOBIEL
   ========================================= */

@media (max-width: 768px) {
    .project-meta {
        flex-direction: column;
    }

    .meta-item {
        border-right: none;
        border-bottom: 1px solid var(--light-border);
    }

    .meta-item:last-child {
        border-bottom: none;
    }

    .skills-section {
        padding: 1.25rem;
    }
}


/* =========================================
   GALERIJ VARIANTEN
   ========================================= */

.project-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
}

.project-gallery.single-col {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.project-gallery img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 0.5rem;
    border: 1px solid var(--light-border);
    background-color: #f8f8f8;
}

@media (max-width: 768px) {
    .project-gallery {
        grid-template-columns: 1fr;
    }
}


/* =========================================
   EINDWERK LAYOUT (tekst links, poster rechts)
   ========================================= */

.eindwerk-layout {
    display: flex;
    flex-direction: row;
    gap: 2.5rem;
    align-items: flex-start;
    margin-top: 1rem;
}

.eindwerk-tekst {
    flex: 2;
}

.eindwerk-tekst p {
    margin-bottom: 0;
}

.eindwerk-foto {
    flex: 1;
    display: flex;
    justify-content: center;
}

.eindwerk-foto img {
    width: 100%;
    max-width: 280px;
    height: auto;
    object-fit: contain;
    border-radius: 0.5rem;
    border: 1px solid var(--light-border);
}

@media (max-width: 768px) {
    .eindwerk-layout {
        flex-direction: column;
        align-items: center;
    }

    .eindwerk-foto img {
        max-width: 220px;
    }
}